import request from '@/utils/request'

// 查询【教室】列表
export function listClassroom(query) {
  return request({
    url: '/studentMan/classroom/list',
    method: 'get',
    params: query
  })
}

// 查询【教室】详细
export function getClassroom(id) {
  return request({
    url: '/studentMan/classroom/' + id,
    method: 'get'
  })
}

// 新增【教室】
export function addClassroom(data) {
  return request({
    url: '/studentMan/classroom',
    method: 'post',
    data: data
  })
}

// 修改【教室】
export function updateClassroom(data) {
  return request({
    url: '/studentMan/classroom',
    method: 'put',
    data: data
  })
}

// 删除【教室】
export function delClassroom(id) {
  return request({
    url: '/studentMan/classroom/' + id,
    method: 'delete'
  })
}

// 查询教室号 和 教室名称
export function listClassroomMsg() {
  return request({
    url: '/studentMan/classroom/listClassroomMsg',
    method: 'get'
  })
}

